﻿<%@ Page Title="ScrumPeak.com" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
  AutoEventWireup="true" Inherits="MvcContrib.FluentHtml.ModelViewPage<ProjectModel>" %>
<%@ Import Namespace="Peak.Web.Controllers.HtmlExtentions"%>
<%@ Import Namespace="Peak.Resources"%>

<%@ Import Namespace="Peak.Web.Controllers" %>
<%@ Import Namespace="MvcContrib.FluentHtml" %>
<%@ Import Namespace="Peak.Core" %>
<%@ Import Namespace="Peak.Web.Controllers.Models" %>
<asp:Content ContentPlaceHolderID="center" runat="server">  
  <div class="page-content">
    <div class="page-title">
      <%= PageTitles.NewProject %>
    </div>
    <form method="post">
      <table class="form">
        <tbody>
          <tr>
            <td align="right">
              <%= Labels.Name %>
            </td>
            <td class="fieldName">
              <%= this.TextBox(f=>f.Name) %><br />
              <%= this.ValidationMessage(f=>f.Name) %>
            </td>
          </tr>
          <tr>
            <td align="right">
              <%= Labels.Vision %>
            </td>
            <td width="85%">
              <%= this.TextArea(f=>f.Vision).Attr("style","width:100%;") %>
              <%= this.ValidationMessage(f=>f.Vision) %>
            </td>
          </tr>
          <tr>
            <td align="right">
              <%= Labels.Start %>
            </td>
            <td>
              <%= this.TextBox(f=>f.Start)%><br />
              <%= this.ValidationMessage(f=>f.Start) %>
            </td>
          </tr>
          <tr>
            <td align="right">
              <%= Labels.End %>
            </td>
            <td>
              <%= this.TextBox(f=>f.End)%><br />
              <%= this.ValidationMessage(f=>f.End) %>
            </td>
          </tr>
          <tr>
            <td align="right">
              <%= Labels.DefinitionOfDone %>
            </td>
            <td>
              <%= this.TextArea(f => f.DefinitionOfDone).Attr("style", "width:100%;") %>
              <%= this.ValidationMessage(f=>f.DefinitionOfDone) %>
            </td>
          </tr>
          <tr>
            <td align="right">
              <%= Labels.DefaultProject %>
            </td>
            <td>
              <%= this.CheckBox(f => f.Default)%>              
            </td>
          </tr>
          <tr>
            <td>
            </td>
            <td>
              <%= Html.OkButton()%>
              <%= Html.CancelButton() %>
            </td>
          </tr>
        </tbody>      
      </table>  
    </form>  
  </div>    
</asp:Content>
